
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class SimplePatternBinding extends PatternBinding {
	
	
	protected Ident name;
	protected AbstractPattern pattern;
	
	public SimplePatternBinding(Span span, Ident name,AbstractPattern pattern) {
		super(span);
		this.name = name;
		this.pattern = pattern;
	}
	
	
	public Ident getName() {
		return name;
	}
	
	public void setName(Ident name) {
		this.name = name;
	}
	
	public AbstractPattern getPattern() {
		return pattern;
	}
	
	public void setPattern(AbstractPattern pattern) {
		this.pattern = pattern;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitSimplePatternBinding(this);
	}
}
